.class final Lcom/hyphenate/chat/adapter/EMARHttpAPI$1;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/hyphenate/cloud/CustomMultiPartEntity$ProgressListener;


# instance fields
.field final synthetic val$callback:Lcom/hyphenate/chat/adapter/EMARHttpCallback;

.field final synthetic val$totalSize:J


# direct methods
.method constructor <init>(JLcom/hyphenate/chat/adapter/EMARHttpCallback;)V
    .locals 1

    iput-wide p1, p0, Lcom/hyphenate/chat/adapter/EMARHttpAPI$1;->val$totalSize:J

    iput-object p3, p0, Lcom/hyphenate/chat/adapter/EMARHttpAPI$1;->val$callback:Lcom/hyphenate/chat/adapter/EMARHttpCallback;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public transferred(J)V
    .locals 7

    long-to-float v0, p1

    iget-wide v2, p0, Lcom/hyphenate/chat/adapter/EMARHttpAPI$1;->val$totalSize:J

    long-to-float v1, v2

    div-float/2addr v0, v1

    const/high16 v1, 0x42c80000    # 100.0f

    mul-float/2addr v0, v1

    float-to-int v0, v0

    const/16 v1, 0x64

    if-eq v0, v1, :cond_0

    iget-object v0, p0, Lcom/hyphenate/chat/adapter/EMARHttpAPI$1;->val$callback:Lcom/hyphenate/chat/adapter/EMARHttpCallback;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/hyphenate/chat/adapter/EMARHttpAPI$1;->val$callback:Lcom/hyphenate/chat/adapter/EMARHttpCallback;

    iget-wide v2, p0, Lcom/hyphenate/chat/adapter/EMARHttpAPI$1;->val$totalSize:J

    long-to-double v2, v2

    long-to-double v4, p1

    invoke-virtual {v0, v2, v3, v4, v5}, Lcom/hyphenate/chat/adapter/EMARHttpCallback;->onProgress(DD)V

    :cond_0
    return-void
.end method
